<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>JS02</title>
    </head>
    <body>


        <div class="myclick" data-param="{url:'xxx',params:'x=123&y=abcdef'}"  >xxxxx</div>
        <a href="xxxxxx" class="myclick" data-param="{url:'aaa',params:'x=123456'}">按钮</a>

        
        <script src="my.js"></script>



    </body>


</html>